package com.taotao.delayjob.example.controller;

import com.taotao.common.model.RespData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author saytime
 * @since 2018-12-06
 */
@Slf4j
@Api(tags = "地区")
@Controller
@RequestMapping("/area")
public class AreaController {




    @ResponseBody
    @RequestMapping(value = "/trim2", method = RequestMethod.GET)
    public RespData<Object> trim2(@ApiParam(value = "地区名称",required = true) @RequestParam("areaName") String areaName) {
        log.info("-------------areaName2={}", areaName);

        return RespData.successResp(null);
    }


}
